package com.cmsr.springclond.common;


import com.cmsr.springclond.common.model.OrderCloseDto;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;


/**
 * 	字段校验工具类
 *
 * @author xukw
 *
 */

@Service
public class Validators {


	public static void validOcLengthAndRegex(OrderCloseDto orderCloseDto) throws Exception {
		if (StringUtils.isEmpty(orderCloseDto.getRequestId())) {
			System.out.println("请求流水号不能为空.....");
			throw new Exception("请求流水号不能为空");
		}
	}




}
